﻿$(function () {

    $('body').bind('DOMNodeInserted', utils.debounce(() => {
        $('a').on('click', e => {
            let a = $(e.delegateTarget);
            let href = a.attr('href');
            if (href && href != "#") {
                if (a.attr("target") === "_blank") {
                    window.open(href);
                } else {
                    location.href = href;
                }
                return false;
            }
            return true;
        })

    },200))

})